
\documentclass[letterpaper, 10pt]{article}
\usepackage[authoryear]{natbib}
\usepackage{lipsum}
\begin{document}
\lipsum[1-4]
\nocite{*}
\bibliographystyle{apalike}
\bibliography{ref.bib}
\end{document} 


